package com.yingdong.message;

import com.yingdong.opcode.ServerOpcode;
import com.yingdong.sceneserver.inner.message.SendBaseMessage;

public class CreateRoleMessage extends SendBaseMessage {

	public CreateRoleMessage(int userId, int result) {
		super(ServerOpcode.CREATE_ROLE);
		writeByte(result);
		if(result==1){
			writeInt(userId);
		}
		
	}

}
